class Person {
  constructor(name,age){
    this.name = name
    this.age = age
  }
  eat(){
    alert(`${this.name} eat`)
  }
}
let  yuanyuan = new Person("yuanyuan",20)
yuanyuan.eat()